package Util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 时间转换工具
 */
public class DateTool {
    public static String LOC_TIME_FORMAT = "yyyyMMddHHmmss";
    public static SimpleDateFormat formatter= new SimpleDateFormat(LOC_TIME_FORMAT);
    public static DateTool dateUtil= new DateTool();
    public DateTool() {}

    /**
     * 获取当前时间
     * @return
     */
    public static String getNowTime(){
//        Date date = new Date();
        return formatter.format(new Date());
    }
}
